//
//  ViewController.m
//  myTabBarController
//
//  Created by 苗钧豪 on 16/7/23.
//  Copyright © 2016年 苗钧豪. All rights reserved.
//

#import "ViewController.h"
#import "myView.h"
#import "myViewController.h"
//#import "ViewController.h"
#import "oneViewController.h"
#import "twoViewController.h"
#import "threeViewController.h"
#import "foreViewController.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor redColor];
    self.navigationController.navigationBar.hidden = YES;
//    myView *myview = [[myView alloc]initWithFrame:CGRectMake(0, self.view.bounds.size.height - 44, self.view.bounds.size.width, 44)];
//    myview.backgroundColor = [UIColor cyanColor];
//    [self.view addSubview:myview];
    
    // Do any additional setup after loading the view, typically from a nib.
    
    myViewController *myview = [[myViewController alloc]init];
    myview.view.frame = CGRectMake(0, self.view.bounds.size.height - 44, self.view.bounds.size.width, 44);
    [self.view addSubview:myview.view];
}
//- (void)btn1 {
//    ViewController *vc = [[ViewController alloc]init];
//    vc.modalTransitionStyle = UIModalTransitionStylePartialCurl;
//    [self presentViewController:vc animated:NO completion:nil];
//    
//}
- (void)btn2 {
    [self dismissViewControllerAnimated:YES completion:nil];
    oneViewController *vc = [[oneViewController alloc]init];
    vc.modalTransitionStyle = UIModalTransitionStylePartialCurl;
    [self presentViewController:vc animated:NO completion:nil];
}
- (void)btn3 {
    [self dismissViewControllerAnimated:YES completion:nil];
    twoViewController *vc = [[twoViewController alloc]init];
    vc.modalTransitionStyle = UIModalTransitionStylePartialCurl;
    [self presentViewController:vc animated:NO completion:nil];
}
- (void)btn4 {
    [self dismissViewControllerAnimated:YES completion:nil];
    threeViewController *vc = [[threeViewController alloc]init];
    vc.modalTransitionStyle = UIModalTransitionStylePartialCurl;
    [self presentViewController:vc animated:NO completion:nil];
}
- (void)btn5 {
    [self dismissViewControllerAnimated:YES completion:nil];
    foreViewController *vc = [[foreViewController alloc]init];
    vc.modalTransitionStyle = UIModalTransitionStylePartialCurl;
    [self presentViewController:vc animated:NO completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
